<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <button>点me</button>

    <script>
        $('h1').css('color','#f00').css('font-size','100px');

        $('button').click(function(){
            $('h1').toggle(3000);
        });
    </script>
</body>
</html>